package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.domain.entity.Role;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<String> selectRoleKeyByUserId(Integer userId);


    boolean changeRoleStatus(Role role);

    boolean addRole(Role role);

    List<Role> selectRoleByRoleName(Role role);

    List<Role> getAllRoles();
}
